package com.ficus.road.maintain.client.Response;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.time.LocalDate;
import java.util.List;

/**
 * 通过ubid获取分数详情结果数据
 */
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class Details {

    /**
     * 考核评分表中的 unid
     */
    @JsonProperty("pUnid")
    private String pUnid;
    /**
     * 详情表unid
     */
    @Id
    @JsonProperty("detailUnid")
    private String detailUnid;
    /**
     * 详情表父节点unid
     */
    @JsonProperty("detailPUnid")
    private String detailPUnid;
    /**
     * 项目名称
     */
    @JsonProperty("projectName")
    private String projectName;


    /**
     * 评分标准
     */
    @JsonProperty("scoreStandard")
    private String scoreStandard;
    /**
     * 标准分
     */
    @JsonProperty("fullMarks")
    private double fullMarks;
    /**
     * 扣分
     */
    @JsonProperty("deductScore")
    private double deductScore;

    /**
     * 得分
     */
    @JsonProperty("getScore")
    private double getScore;
    /**
     * 扣分原因
     */
    @JsonProperty("deductScoreReason")
    private String deductScoreReason;
    /**
     * 备注
     */
    @JsonProperty("remark")
    private String remark;

    /**
     * 序号
     */
    @JsonProperty("seqNo")
    private int seqNo;
    /**
     * 占比
     */
    @JsonProperty("proportion")
    private int proportion;
    /**
     * 子类详细信息
     */
    @JsonProperty("children")
    private List<Children> children;
    private LocalDate localDate;
    private String date;
}
